Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSC4108 secure channel split encryption keys and monotonic nonces #146

Merged
merged 3 commits into from
Apr 20, 2024

Conversation

hughns
Copy link
Member

@hughns hughns commented Apr 19, 2024

For the attention of @dkasak.

Implement changes from matrix-org/matrix-spec-proposals@aa37af9

Copy link
Collaborator

@poljar poljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it does what we intended to do. This will go through a more serious review a bit later.

Thanks for tackling this.

}

const CHECKCODE_INFO_STRING: &str = "MATRIX_QR_CODE_LOGIN_CHECKCODE";
const ENCKEY_S_INFO_STRING: &str = "MATRIX_QR_CODE_LOGIN_ENCKEY_S";
const ENCKEY_G_INFO_STRING: &str = "MATRIX_QR_CODE_LOGIN_ENCKEY_G";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like constants to be either completely local, or if they aren't scoped to a impl block or even function, at the top of the file. They are now between a struct and its impl block which I find to be the last place I would expect them to be.

Though don't worry, I'll move them where I'll want them.

@poljar poljar merged commit 8f383d3 into matrix-org:poljar/qr-login Apr 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants